<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" href="{SITE_URL}app/{$app}/skins/default/ajax.css" />
<script src="{SITE_URL}public/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="{SITE_URL}public/js/uploadify/jquery.uploadify.v2.1.4.js" type="text/javascript"></script>
<script src="{SITE_URL}public/js/uploadify/swfobject.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="{SITE_URL}public/js/uploadify/uploadify.css" />
<script type="text/javascript">

$(document).ready(function()
{
	
	$("#uploadify").uploadify({
		'uploader': '{SITE_URL}public/js/uploadify/uploadify.swf',
		'script': '{SITE_URL}index.php',
		'scriptData':{'app':'attach','ac':'ajax','ts':'flash_do','userid':'{$TS_USER[user][userid]}'},
		'method':'GET', 
		'cancelImg': '{SITE_URL}public/js/uploadify/cancel.png',
		'folder': 'UploadFile',
		'queueID': 'fileQueue',
		'auto': true,
		'multi': true,
		'buttonImg':'{SITE_URL}public/images/upload.png',
		'fileDesc':'rar,zip,doc,ppt,txt等格式',
		'fileExt':'*.rar;*.zip;*.doc;*ppt;*txt;*jpg;*png;*gif;',
		'onAllComplete' : function(event,data) {
			window.location = "{SITE_URL}index.php?app=attach&ac=ajax&ts=my";
		}

	});

})

</script>

</head>
<body>
{template ajax_menu}
<div class="pd010">
<div id="fileQueue"></div>
<input type="file" id="uploadify" />
<p>
<a href="javascript:$('#uploadify').uploadifyUpload()">上传</a>| 
<a href="javascript:$('#uploadify').uploadifyClearQueue()">取消上传</a>
| <a href="{SITE_URL}index.php?app=attach&ac=ajax&ts=my">返回我的附件</a>
</p>
</div>

</body>
</html>